
package com.distribute.sso.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.distribute.common.pojo.DistributeResult;
import com.distribute.pojo.DbUser;


public interface UserService {

	DistributeResult checkData(String content, Integer type);
	DistributeResult createUser(DbUser user);
	DistributeResult userLogin(String username, String password, HttpServletRequest request, HttpServletResponse response);
	DistributeResult userLogout(String token);
	DistributeResult getUserByToken(String token);
	DistributeResult updateUserPass(String userName,String password,String token);
	DistributeResult updateUserInfo(String userName,String phone,String email,String token);
	boolean checkUserPass(String userName,String password);
}
